home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 79 / maccd 79.iso / multimedial / GL Tron / Source / gltron / menu.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-13  |  697 b   |  46 lines  |  [TEXT/CWIE]

  1. #ifndef MENUS
  2. #define MENUS
  3.  
  4. enum {
  5.   MENU_ACTION = 1,
  6.   MENU_LEFT = 2,
  7.   MENU_RIGHT = 4
  8. };
  9.  
  10. extern float menu_fgColor[4];
  11. extern float menu_hlColor1[4];
  12. extern float menu_hlColor2[4];
  13.  
  14. typedef struct {
  15.   /* fonttex *font; */
  16.   float fgColor[4]; /* entries */
  17.   float hlColor1[4]; /* the highlighted one */
  18.   float hlColor2[4];
  19.   char szCaption[64];
  20. } mDisplay;
  21.  
  22. typedef struct Menu {
  23.   int nEntries;
  24.   int iHighlight;
  25.   mDisplay display;
  26.   char szName[64];
  27.   char szCapFormat[64];
  28.   struct Menu** pEntries;
  29.   struct Menu* parent;
  30.   void* param; /* reserved to bind parameters at runtime */
  31. } Menu;
  32.  
  33. typedef struct {
  34.   void* data;
  35.   void* next;
  36. } node;
  37.  
  38.   // hack
  39. extern int menutime;
  40. #endif
  41.  
  42.  
  43.  
  44.  
  45.  
  46.